entry: Fix baseline alignment
authorTimm Bäder <mail@baedert.org>
Tue, 4 Jul 2017 13:22:58 +0000 (15:22 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:15 +0000 (21:27 -0400)
Since we only look at priv->text_baseline later on, it would be useful
to actually set it to a useful value.

gtk/gtkentry.c

index 5b04ef7117f2278cbeae478cc1d8ded414b06832..baaa6906d7f8b8f069dbcb1632830609ceccb157 100644 (file)
@@ -3110,7 +3110,7 @@ gtk_entry_size_allocate (GtkWidget     *widget,
   GtkAllocation child_clip;
   gint i;
 
-  priv->text_baseline = -1;
+  priv->text_baseline = gtk_widget_get_allocated_baseline (widget);
 
   priv->text_x = 0;
   priv->text_width = allocation->width;